package com.tl.commonlibrary.ui.beans;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/9/5 0005.
 */

public class AliPayResultBean implements Serializable {


    /**
     * userCoins : 4
     * orderStatus : 1 # 订单状态，1 交易创建，等待买家付款 2 未付款交易超时关闭，或支付完成后全额退款 3 支付成功 4 交易结束，不可退款
     */

    private long userCoins;
    private int orderStatus;

    public long getUserCoins() {
        return userCoins;
    }

    public void setUserCoins(long userCoins) {
        this.userCoins = userCoins;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public boolean success() {
        return orderStatus == 3 || orderStatus == 4;
    }
}
